# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=killerbee
pkgver=398.748740d
pkgrel=6
groups=('blackarch' 'blackarch-exploitation' 'blackarch-wireless')
pkgdesc='Framework and tools for exploiting ZigBee and IEEE 802.15.4 networks.'
arch=('x86_64' 'aarch64')
url='https://github.com/riverloopsec/killerbee'
license=('BSD')
depends=('python' 'python-pycryptodome' 'python-pyusb' 'pygtk' 'python-cairo'
         'python-pyserial' 'python-scapy' 'python-rangeparser')
makedepends=('git' 'python-setuptools')
conflicts=('killerbee-svn')
provides=('killerbee-svn')
options=(!emptydirs)
source=("git+https://github.com/riverloopsec/$pkgname.git")
sha512sums=('SKIP')

pkgver() {
  cd $pkgname

  echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
}

build() {
  cd $pkgname

  python setup.py build
}

package() {
  cd $pkgname

  python setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}

